package com.example.zyl.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.zyl.common.query.annotation.ApiAliasField;

import java.io.Serializable;

/**
 * 数据库信息表(SysDatabase)实体类
 *
 * @author zyl
 * @since 2024-12-05 11:39:22
 */
public class SysDatabase implements Serializable {

    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 数据库名称（英文名称）
     */
    @ApiAliasField(value = "dbName", isAlias = true)
    private String dbName;

    /**
     * jdbc的驱动类型
     */
    @ApiAliasField(value = "driverClassName")
    private String driverClassName;

    /**
     * 数据库连接的账号
     */
    @ApiAliasField(value = "username")
    private String username;

    /**
     * 数据库连接密码
     */
    @ApiAliasField(value = "password")
    private String password;

    /**
     * jdbc的url
     */
    @ApiAliasField(value = "url")
    private String url;

    /**
     * 备注，摘要
     */
    private String remarks;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}

